<?php
// user config

if( session_id() == ''  ) session_start();

error_reporting(E_ALL ^ E_NOTICE);
define( 'DB_SERVER', 'localhost' );

if( true == strpos( $_SERVER['HTTP_HOST'], '.com' ) ) {
	define( 'DB_DATABASE', 'kibishco_hospital' );
	define( 'DB_USERNAME', 'somnath' );
	define( 'DB_PASSWORD', 'somnath' );
	
	define( 'ROOT', 'http://kibishconstructions.com/som/' );
	define( 'BaseROOT', 'http://kibishconstructions.com/som/' );
} else {
	define( 'DB_DATABASE', 'hospital_imp' );
	define( 'DB_USERNAME', 'root' );
	define( 'DB_PASSWORD', 'root' );
	
	define( 'ROOT', 'http://localhost/vphms/' );
	define( 'BaseROOT', 'http://localhost/vphms/' );
}


//change post data
foreach ($_POST as $key => $value) {
	if(!is_array($value)){
		$_POST[$key] = htmlspecialchars($value, ENT_QUOTES);
	}
}
?>